<?
$mail='<br>
Name: '.$_POST[name].'<br>
Email: '.$_POST[email].'<br>
Phone Number: '.$_POST[phone].'<br>
<br><u>Lacation</u><br>
&nbsp;&nbsp;&nbsp;City: '.$_POST[city].'<br>
&nbsp;&nbsp;&nbsp;Estate: '.$_POST[state].'<br>
';

$mail.='<br><u>Areas of Expertise</u><br>';
$fields = $_POST['expertise'];
if (is_array($fields)) {
	foreach ($fields as $key=>$val) {
$mail.="&nbsp;&nbsp;&nbsp;$val <br />";
	} 
}
$mail.='<br><u>Job Type</u>:&nbsp;&nbsp;&nbsp;'.$_POST[job].'<br>';
$mail.='<br><u>Are You Willing to Travel</u>:&nbsp;&nbsp;&nbsp;'.$_POST[travel].'<br>';

$mail.'<br>';

$mail.='<u>Experience & Education </u><br>';
$fields = $_POST['education'];
if (is_array($fields)) {
	foreach ($fields as $key=>$val) {
$mail.="$val";
	} 
}

$mail.='<br><u>Years of Relevant Experience </u><br>&nbsp;&nbsp;&nbsp;'.$_POST[years].'<br>';
$mail.='<br><u>Comments</u><br>&nbsp;&nbsp;&nbsp;'.$_POST[comments].'<br>';


	$headers  = "MIME-Version: 1.0\r\n";
	$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
	$headers .= "From: Gobidet <info@bidetoday.com>\r\n";
	$subject = 'Datos desde gobidet';
	
	mail('sierracharly@yahoo.com.ar', $subject, $mail, $headers);
	header('Location: ../career.php?msn=yes');
?>